package com.example.robertluozizhao.framecollectdemo.adapter.holder;

import androidx.annotation.IdRes;

import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.robertluozizhao.framecollectdemo.R;
import com.example.robertluozizhao.framecollectdemo.adapter.base.BaseRcycleHolder;
import com.example.robertluozizhao.framecollectdemo.data.test.TestRcycleitemBean;

/**
 * Created by robert.luozizhao on 2018/2/2.
 */

public class ItemRcViewHolder02 extends BaseRcycleHolder{

    private TextView textView;
    private ImageView imageView;


    public ItemRcViewHolder02(@IdRes int layoutID, ViewGroup parent) {
        super(layoutID,parent);
        textView = getView(R.id.tv_rc_test02);
        imageView = getView(R.id.iv_rc_test02);
    }

    public void setData(TestRcycleitemBean bean){
        textView.setText(bean.getDescription());
        imageView.setImageResource(bean.getSrcId());
    }


}
